package com.dh.blog.sitemap;

public interface Sitemap {
	public static final String PATH_NAME = "classpath:sitemap.xml";
	public static final String SITE_XMLNS = "http://www.sitemaps.org/schemas/sitemap/0.9";
	public static final String SITE_ROOT = "urlset";
	/**
	 * 添加或者更新URL
	 */
	public void addOrUpdateURL(SitemapURL url);
	/**
	 * 删除URL
	 */
	public void removeURL(String loc) ;
	/**
	 * 开始构建,生成document树
	 */
	public void building();
	/**
	 * 构建结束,将内存的document数据写入本地
	 */
	public void finish();
}
